import React from 'react';
import { HashRouter as Router } from 'react-router-dom';
import renderRoutes from 'libs/routes';

//antd中文化
import { LocaleProvider } from 'antd';
import zhCN from 'antd/lib/locale-provider/zh_CN';
import moment from 'moment';
import 'moment/locale/zh-cn';
import './index.less';

//moment中文化
moment.locale('zh-cn');

class Root extends React.PureComponent {
  render() {
    return (
	    <LocaleProvider locale={zhCN}>
        <Router>
          {renderRoutes('/')}
        </Router>
      </LocaleProvider>
    );
  }
}

export default Root;
